package com.gxa.eshops.sso.service;

import com.gxa.eshops.sso.entity.User;
/**
 * @program: IntelliJ IDEA
 * @description:
 * @author: Mr.Wang
 * @create: 2022-07-06 11:21
 **/
public interface UserService {

    /**
     * 登录
     * 登录方法
     * @param phone 电话
     * @param code  代码
     * @return {@code String}
     * @throws Exception 异常
     */
    String login(String phone,String code) throws Exception;

    /**
     * 检查令牌
     *
     * @param token 令牌
     * @return {@code User}
     * @throws Exception 异常
     */
    User checkWithToken(String token) throws Exception;
}
